<%@ page import="Navigator.student.StudentDao" %>
<%@ page import="Navigator.student.StudentEnity" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/8/16
  Time: 10:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生管理</title>
<script>
    function onUpdate() {
        alert("数据已修改");
    }
    function onDelete() {
        alert("数据已删除");
    }
</script>
</head>
<link href="SystemerNav.css" rel="stylesheet" type="text/css">
<body background="/LoginInterface/loginFace.jpg">

<%
    String studentNo=request.getParameter("studentNo");
    StudentDao studentDao=new StudentDao();
    StudentEnity studentEnity=studentDao.getStudent(studentNo);
%>
<form action="/Navigator/Systemer/updateStudentServlet" method="post">
    <table>
        <tr><td colspan="8" width="350px" align="center">职工详细信息</td></tr>
        <tr><td>学号</td>
            <td>姓名</td>
            <td>性别</td>
            <td>密码</td>
            <td>学院</td>
            <td>班级</td>
            <td>数据修改</td>
            <td>数据删除</td>
        </tr>
        <tr>
            <td><%=studentEnity.getStudentNo()%></td>
            <td><input type="text" name="studentName" value="<%=studentEnity.getStudentName()%>"></td>
            <td><input type="text" name="sex" value="<%=studentEnity.getSex()%>"></td>
            <td><input type="text" name="studentPas" value="<%=studentEnity.getStudentPas()%>"></td>
            <td><input type="text" name="collage" value="<%=studentEnity.getCollage()%>"></td>
            <td><input type="text" name="className" value="<%=studentEnity.getClassName()%>"></td>
            <td ><input type="submit" value="修改" onclick="onUpdate()">
                <input type="hidden" name="studentNo" value="<%=studentEnity.getStudentNo()%>"></td>
            <td><a href="/Navigator/Systemer/deleteStudentServlet?studentNo=<%=studentEnity.getStudentNo()%>" onclick="onDelete()">删除</a></td>
        </tr>

    </table>

</form>


</body>
</html>
